Merge "Fix tooltip accessibility for screen readers"
authorjenkins-bot <jenkins-bot@gerrit.wikimedia.org>
Sat, 16 Dec 2017 14:59:35 +0000 (14:59 +0000)
committerGerrit Code Review <gerrit@wikimedia.org>
Sat, 16 Dec 2017 14:59:35 +0000 (14:59 +0000)
includes/htmlform/fields/HTMLCheckMatrix.php

index dd4e707..df44626 100644 (file)
@@ -106,6 +106,7 @@ class HTMLCheckMatrix extends HTMLFormField implements HTMLNestedFilterable {
                                $tooltipAttribs = [
                                        'class' => "mw-htmlform-tooltip $tooltipClass",
                                        'title' => $this->mParams['tooltips'][$rowLabel],
+                                       'aria-label' => $this->mParams['tooltips'][$rowLabel]
                                ];
                                $rowLabel .= ' ' . Html::element( 'span', $tooltipAttribs, '' );
                        }